package com.efivestar.idm.api.domain;

import lombok.*;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Builder
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_device")
public class DeviceDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String deviceId;

    @Transient
    private String name;

    private Integer type;

    /**
     * 布防的状态。
     * 0 撤防
     * 1 布防
     */
    private Integer defenseStatus;
    /**
     * 电量.
     */
    private Integer power;

    private Date heartTime;


    private Date createTime;

    /**
     * 电信平台设备id
     */
    private String iotDeviceId;

    private String iccid;

    /**
     * 请求远程开锁的协议头
     */
    private String protocolHeader;

    /**
     * 密码校验环节
     * 0 服务端
     * 1 设备端
     */
    private Integer verifyEndPoint;

}
